//
//  QLMAddDeviceBotCell.m
//  Xiaomakuaixiu
//
//  Created by 龚碧容 on 2017/10/13.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "QLMAddDeviceBotCell.h"

@implementation QLMAddDeviceBotCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView{
    static NSString *identifiew=@"QLMAddDeviceBotCellId";
    QLMAddDeviceBotCell *cell=[tableView dequeueReusableCellWithIdentifier:identifiew];
    if (cell==nil) {
        cell=[[[NSBundle mainBundle] loadNibNamed:@"QLMAddDeviceBotCell" owner:nil options:nil] firstObject];
        
        UILabel *aTipLabel=[[UILabel alloc] initWithFrame:CGRectMake(20, 10, 60, 30)];
        aTipLabel.font=[UIFont systemFontOfSize:16];
        aTipLabel.textColor=[UIColor darkGrayColor];
        aTipLabel.text=@"备注";
        aTipLabel.backgroundColor=[UIColor clearColor];
        aTipLabel.textAlignment=NSTextAlignmentLeft;
        [cell addSubview:aTipLabel];
    }
    return cell;
}

- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
    [_delegate tapTFAction];
    return YES;
}

@end
